package Data;

import javax.swing.*;
import GUI.*;

public class ClassWithShape{
	Class c; 
	ClassFrame currentClassFrame;
	ClassFrame oldClassFrame;
	
	//public ClassWithShape() {
		//c = null;
	//}
	
	public ClassWithShape(ClassWithShape cs) {
		c = cs.c;
		currentClassFrame = cs.currentClassFrame;
		oldClassFrame = cs.oldClassFrame;
	}
	
	public ClassWithShape(Class _c, ClassFrame classFrame) {
		c = (_c == null ? null : new Class(_c));
		oldClassFrame = (classFrame == null ? null : new ClassFrame(classFrame));
		currentClassFrame = classFrame;
	}
	
	public ClassWithShape(Class _c, ClassFrame old, ClassFrame current) {
		c = (_c == null ? null : new Class(_c));
		oldClassFrame = (old == null ? null : new ClassFrame(old));
		currentClassFrame = current;
	}
	
	public Class GetClass() {
		return c;
	}
	
	public ClassFrame getCurrentClassFrame() {
		//System.out.print(currentClassFrame);
		return currentClassFrame;
	}
	
	public ClassFrame getOldClassFrame() {
		return oldClassFrame;
	}
}
